<template>
  <div class="homework">
      <van-area title="省市区选择" :area-list="areaList" @confirm="showArea" />
  </div>
</template>

<script>
import {areaList} from '@vant/area-data'

export default{
  data(){
    return {areaList};
  },
  methods:{
    showArea(area){
      console.log(area[0].name,area[1].name,area[2].name);
    }
  }
}
</script>
